Skip to content

Fixed invalid top-level self link #672

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 11, 2020
Merged

Fixed invalid top-level self link #672

merged 2 commits into from
Feb 11, 2020

Conversation

bart-degreed
Copy link
Contributor

Fixes #646 and #632.

Removed dependency on ResourceContext in the process, because it was no longer needed.
Additionally I changed the decision to render which links to be taken from the related entity (from Article in a request like /people/1/articles instead of Person), because I believe that is more correct than taking it from the primary entity, which is the old behavior.

Bart Koelman added 2 commits January 23, 2020 19:06
Removed dependency on ResourceContext in the process, because it was no longer needed.
Additionally I changed the decision to render which links to be taken from the related entity (from Article in a request like /people/1/articles instead of Person), because I believe that is more correct than taking it from the primary entity, which is the old behavior.
@bart-degreed
Copy link
Contributor Author

Resolved merge conflicts.

@maurei maurei merged commit d21532d into json-api-dotnet:master Feb 11, 2020
@bart-degreed bart-degreed deleted the fix-top-level-links branch February 12, 2020 10:46
@bart-degreed bart-degreed mentioned this pull request Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Invalid top-level self link
2 participants